home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
ForCLI
/
lsort13.lha
/
LSort
/
LSort.doc
< prev
next >
Wrap
Text File
|
1995-12-11
|
3KB
|
95 lines
*****************************************************************************
LSort 1.3 (10.12.95) © Konrad Dubiel
*****************************************************************************
INTRODUCTION
--------------
LSort is a freeware and may be freely distributed as long as all files
remain unchanged. The author can not be taken responsible for any damage
caused by this program or its improper use.
LSort is a localized Sort command, it uses standard locale.library's
functions for string comparison. It adapts automatically to sorting rules
of preferred language set in Locale preferences. LSort supports all options
of original Sort, so it can be used as replacement command.
LSort requires Workbench 2.1 or later.
IMPORTANT NOTE
----------------
Original Commodore's locale.library and some #?.language files contain
bugs in character comparison table which results in improper sorting of some
languages. These bugs do not only apply to LSort, but to programs like David
Ekholm's db also. To fix this problem I've included in this archive corrected
language files which should be copied to 'LOCALE:Languages' directory:
deutsch.language - letter ß is placed after S.
norsk.language - letters Æ, Ø and Å are placed after Z.
svenska.language - letters Å, Ä and Ö are placed after Z.
íslenska.language - written from scratch.
If any other language is still sorted incorrectly please let me know.
USAGE
-------
LSort have to be run from Shell only and can be made resident using
'Resident LSort' command.
Template:
LSort FROM/A,TO/A,COLSTART/K/N,CASE/S,NUMERIC/S,REVERSE/S,NOBLANKS/S
FROM - input file name (to be sorted) - may be PIPE:.
TO - output file name (after sorting) - may be the same as input.
COLSTART - starting column number.
CASE - case sensitive sorting - upper case letters first.
NUMERIC - numeric sorting - lower number first.
REVERSE - reverse sorting direction (Z-A or higher numbers first).
NOBLANKS - skip leading blank characters (spaces, tabs).
Examples:
LSort FROM file1 TO file2
This command will sort file1 and write result to file2
LSort file file COLSTART 10
Sort starting from 10th column and save to the same file
LSort file CONSOLE: COLSTART 5 NUMERIC
Numeric sorting starting from 5th column, output to Shell window.
LSort file1 file2 REVERSE NOBLANKS
Reverse sorting with leading spaces being skipped from comparison
LSort PIPE: PRT: CASE
Read file from PIPE:, case sensitive sorting and output to printer.
HISTORY
---------
1.0 - Initial release.
1.1 - norsk.language added (thanks to Øyvind Falch).
1.2 - New options: CASE and NUMERIC, deutsch.language and svenska.language
(thanks to Albin Gierun) added.
1.3 - íslenska.language added (thanks to Arni Freyr Jonsson).
AUTHOR
--------
Suggestions and bug-reports please send to:
Konrad Dubiel
ul. Bartnicza 12/5
71-487 Szczecin
Poland
E-mail: konrad@felix.univ.szczecin.pl